package com.mdhw.controller;

import com.mdhw.common.annotation.IgnorePermissions;
import com.mdhw.common.base.PageData;
import com.mdhw.config.R;
import com.mdhw.device.vo.MiliOpenDoorLogVo;
import com.mdhw.mili.service.MiliDeviceService;
import com.mdhw.mili.vo.device.OpenDoorReqVo;
import com.mdhw.mili.vo.device.ProjectDeviceInfoOpenReqVo;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@Api(tags = "米立-设备相关接口")
@RequestMapping("miliDevice")
public class MiliDeviceController {


    @Autowired
    private MiliDeviceService miliDeviceService;

    @IgnorePermissions
    @GetMapping("/get/selectMiliOpenDoorLogPage")
    public R<PageData<MiliOpenDoorLogVo>> selectMiliOpenDoorLogPage(
            @RequestParam(value = "pageNo",required = true) Integer pageNo,
            @RequestParam(value = "pageSize",required = true) Integer pageSize,
            @RequestParam(value = "mobile",required = true) String mobile
    ){
        return this.miliDeviceService.selectMiliOpenDoorLogPage(pageNo,pageSize,mobile);
    }

}
